/**
 * Created by Administrator on 2017/8/17.
 */
!(function($){
    var services_child = {
        init:function(){
            this.getChildServices();
        },
        getChildServices:function(){
                    var id = GetQueryString('parentId');
                    var zHtitle = getUrlParam('title');
                    $.ajax({
                        url:API_URL+GET_CHILD_SERVICES_URL,
                        type:'post',
                        dataType:'jsonp',
                        data:{id:id},
                        success:function(data){
                            var arr = data.result;
                            if(data.ok==true){
                                if(arr.length>0){
                                    var tpl = template('serviceschild_tpl',data);
                                    $('#servies_child').html(tpl);
                                    $('.weui-header-title').html(zHtitle);
                                }
                            }else{
                                $.alert(data.msg);
                            }
                        }
                    });
         }
    }
    $(function(){
        services_child.init();
    });
})(Zepto);